import getDefaultAuth from "./state";

export function SET_AUTH_ID(state, id) {
  state.id = id || getDefaultAuth().id;
}

export function SET_AUTH_ACCOUNT(state, account) {
  state.account = account || getDefaultAuth().account;
}

export function SET_AUTH_NAME(state, name) {
  state.name = name || getDefaultAuth().name;
}

export function SET_AUTH_ID_CARD_NO(state, idCardNo) {
  state.idCardNo = idCardNo || getDefaultAuth().idCardNo;
}

export function SET_AUTH_MOBILE_NO(state, mobileNo) {
  state.mobileNo = mobileNo || getDefaultAuth().mobileNo;
}

export function SET_AUTH_BANK_CARD_NO(state, bankCardNo) {
  state.bankCardNo = bankCardNo || getDefaultAuth().bankCardNo;
}
